chore(deps): update dependency cachetools to v7#840
chore(deps): update dependency cachetools to v7#840olavloite merged 1 commit intogoogleapis:mainfrom
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request updates the Highlights
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request updates the cachetools dependency to a new major version, v7.0.2. My review has identified a significant issue with the project's testing strategy. The test sessions defined in noxfile.py do not utilize the pinned dependencies from requirements.txt. This means that this dependency update, and others, are likely not being validated by the CI pipeline. I have added a detailed comment outlining the issue and a recommended solution. Addressing this gap in the testing process is crucial for ensuring the project's stability and the integrity of its dependency management.
Note: Security Review has been skipped due to the limited scope of the PR.
| cachetools==7.0.2 \ | ||
| --hash=sha256:7e7f09a4ca8b791d8bb4864afc71e9c17e607a28e6839ca1a644253c97dbeae0 \ | ||
| --hash=sha256:938dcad184827c5e94928c4fd5526e2b46692b7fb1ae94472da9131d0299343c |
There was a problem hiding this comment.
This update to cachetools is a major version bump, which carries inherent risks. More critically, the project's test suite, as configured in noxfile.py, does not appear to use this requirements.txt file for installing dependencies during testing.
Most test sessions (e.g., unit, system, compliance_test) use session.install('.') or session.install('.[tracing]'). This command resolves dependencies based on the broad version ranges in setup.py (e.g., google-cloud-spanner>=3.55.0) at the time the tests are executed, rather than using the specific pinned versions from this file.
This leads to two significant problems:
- This dependency update to
cachetoolsis likely not being tested by the CI pipeline, as the test environment will resolve its own set of dependencies independently. - The primary benefit of pinning dependencies in
requirements.txt—ensuring reproducible environments—is lost during the testing phase.
To resolve this, the test sessions in noxfile.py should be updated to install dependencies from this file. For instance, session.install('.') could be changed to session.install('-r', 'requirements.txt', '.'). This would ensure that tests are consistently run against the exact dependency versions specified here.
This PR contains the following updates:
==6.2.6→==7.0.2Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.